/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.hva.web.mvcwebapp.models;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Thijs
 */
@Entity
@Table(name = "test")
public class Test implements Serializable {
    
    @Id
    @GeneratedValue
    @Column(name = "testid")
    private int testid;
    @Column(name = "testname")
    private String testname;
    @Column(name = "testdescription", length=10000)
    private String testdescription;
    @ManyToOne
    private Chapter chapter;
    
    

    public Test() {
    }

    /**
     * @return the testid
     */
    public int getTestid() {
        return testid;
    }

    /**
     * @param testid the testid to set
     */
    public void setTestid(int testid) {
        this.testid = testid;
    }

    /**
     * @return the testname
     */
    public String getTestname() {
        return testname;
    }

    /**
     * @param testname the testname to set
     */
    public void setTestname(String testname) {
        this.testname = testname;
    }

    /**
     * @return the chapter
     */
    public Chapter getChapter() {
        return chapter;
    }

    /**
     * @param chapter the chapter to set
     */
    public void setChapter(Chapter chapter) {
        this.chapter = chapter;
    }

    /**
     * @return the testdescription
     */
    public String getTestdescription() {
        return testdescription;
    }

    /**
     * @param testdescription the testdescription to set
     */
    public void setTestdescription(String testdescription) {
        this.testdescription = testdescription;
    }
}
